home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Business Shareware
/
Business Shareware.iso
/
start
/
disk
/
pmi12
/
pmi.doc
next >
Wrap
Text File
|
1993-02-25
|
13KB
|
267 lines
PMI
Personal Media Indexer
(c) 1993 Midwest T-Cubed, Tim Hoefer
This program was created to make the author's life easy,
simple, and basic. He feels that this program may be needed and of
use to fellow computer users also and hopes that others may
benifit from it. Please read the statement at the bottom of this
doc file to see how registration of PMI can make you a few bucks.
Following is a brief description of the program.
Requirements:
In order for PMI to find files in the subdirectories of the
diskette being indexed, you must have ver. 5.0 of MS-DOS or an
equivalent.
All PMI files (PMI.EXE, PMIFIND.COM, and eventually PMI.NDX)
should all be kept in the same directory. In order for PMI to work
effectively, it needs to know where these files are and it checks
the environment variable 'PMI' to acquire the location. To set the
environment variable, type "SET PMI=" followed by the DRIVE AND
PATH of the PMI files (i.e. C:\> set pmi=c:\utils\pmi). This
variable *must* be set before running PMI or an error will be given
and the program will not execute. This all may be accomplished by
either adding the SET command to your autoexec.bat. This is the
most recommended way. Writing a batchfile for executing PMI is not
recommended, though, but if the user is knowledgable enough, these
things need to be known:
PMIFIND.COM is a compiled batch file and
accepts either 0, 1, or 2 command-line arguments.
A batch file used to set the pmi env. var. and then execute
PMIFIND.COM would have to be tailor fit to accept and pass 2
arguments.
PMI.EXE:
This is the meat of the Personal Media Indexer system. It is
the program which is executed when the user wishes to index
diskettes.
After execution, the user is eventually prompted to enter the
drive letter in which the first diskette will be read from. Then
the user is prompted to enter the diskette into this drive and
press a key. PMI reads all files in all directories of the drive.
It then displays the files on the screen in red. If any of the files
are ARJ files or ARJ volumes (i.e. .A01, .A02, ...etc), they are listed
in brown. Note: The author keeps his archives only in ARJ format since
the ARJ format has held up its reputation as the most efficient compres-
sion format. These ARJ file can be tagged or highlighted with the
spacebar. They may be moved between with the '>' and '<' keys (shift
need not be pressed). By doing so, the user is telling PMI that these
files should be indexed *with* their internal files also. This comes
in handy when an ARJ'd file consists of many independent files which
may or may not have something to do with one another.
When the user is satisfied with the selections, the Enter key is
pressed and PMI appends the diskette's and/or selected ARJ'd files'
contents into the PMI directory. That's it, basic and simple.
Features of PMI.EXE:
- in the upper right of the screen, a display shows
which diskette was indexed last
- in the upper left of the screen, a display shows
the current diskette label and how many files were
found on it
- if a diskette does not have a label, the user is
asked if one should be assigned, if so, PMI prompts
the user for a label name, if not, the user is
prompted to enter another diskette
NOTE: PMI WILL NOT index a diskette if it does not
have a label associated with it!
NOTE: PMI will recognize duplicate disk labels and
will prompt the user to continue if one is found
Problems of PMI.EXE:
- PMI was written in Quick Basic and is not very
powerful in the Disk Operating System department,
I refused to use other programmers modules, in that
I wanted to write PMI totally from scratch. I am,
for the most part satisfied, and up coming versions
are to be written in Turbo Pascal.
- In the above respect, Operating System error messages
are directly echoed to the screen and no internal
Disk Operating System error checking is done
- PMI may be slow on older machines with slow disk
access times.
- PMI does not yet support other forms of file
compression, though it will in the future
- PMI does not implement any deletion or replacement
of disk listings (e.g. if a duplicate label is
detected and the user wishes to proceed with
indexing, there will, then exist more than one
listing for that label)
PMIFIND.COM:
This is the utility which allows queries of the index file from the
dos command line. PMIfind's format follows
PMIFIND [-c] [-l] [SEARCH STRING]
-c turns on case-sensitive search
(upper and lower case specific)
-l lists the entire contents of the index file
SEARCH STRING the string to search on
This program is pretty easy to understand. There are 3 main formats of
PMIFIND.COM:
1. PMIFIND string
- This searches the PMI.NDX file for all
occurances of the letters s-t-r-i-n-g in
succession. Case is not taken into account,
thus (String, STring, StRiNg, strIng, etc.)
will all be considered a find.
2. PMIFIND -c string
- This searches the PMI.NDX file for all
occurances of the letters s-t-r-i-n-g in
succesission. Case IS taken into account,
thus only 'string' will be considered a
find
3. PMIFIND -l
- This lists the entire contents of the PMI.NDX
file.
Keep in mind that when you index diskettes with the PMI program, it
indexes volumes and internal ARJ files in all capital letters, while it
indexes the filenames (ARJ and non-ARJ) in lowercase. This aids in queries
by allowing the user to designate -c with a lowercase string which will,
in essense, restrict the search to only the original filenames. This will
also work vice versa using the -c switch and PMIfind.
The PMIfind output screen is nice in that it prints out a screen of
finds and then prompts the user to press a key, then the next screen is
displayed and so on until the end. The files are displayed as they are
found.
I hope that this has sufficiently explained the workings of PMI.
Basically it is a rather simple program, though, this surprises me since
it took awhile to code. (You wouldn't believe how many revisions
I have made in this, added something here...removed something there...).
In this respect, I feel that I have made a program which I find very
useful. If I have a hard drive failure, I have the PMI.NDX and the PMI
program on disk with write-protect, and can go from there, restoring all
of my programs and utilities. Or, in the case that I just need a few
utils every once in a while, I can put them on diskette, index them, and
query on their whereabouts when I need them, use them, and delete them
from my hard drive, thus freeing up space, and saving time.
I feel that this program would be of use to others and have decided
to release it as shareware, with a 30-day trial period. This means that
if, after 30 days of use, you find that you do not wish to register PMI
(and possibly make a few dollars in return), you must delete all files
which were received as the PMI program package AND all files created by
the PMI program package. But, before doing this, you have the right to
pass the original PMI program, as you received it, to a fellow computer
user. Any deviation is a violation of the author's rights.
If you do wish to register PMI with the author, you will need to print
the file REGISTER.FRM which should have been included with the PMI files (if
one wasn't included, please print out and use the one below), fill it out
and follow these steps:
1. copy down the serial number from the
opening screen of PMI onto the registration
form
2. be sure to designate which diskette media
you wish to receive
3. make a check or money order of $15 out to
TIM HOEFER
4. place the registration form and the check or
money order in an envelope and send it to the
address below
Midwest T-Cubed
c/o Tim Hoefer
1304 James Ave. N.E.
Swisher, IA 52338-9801
U.S.A.
5. wait to receive YOUR PMI program which will
contain YOUR serial number in it
6. pass on the PMI files to friends, upload them
to bulletin board systems, etc...
7. await possible future payments of $5 for each
person who registers a copy of YOUR PMI program
with YOUR serial number
Yes, if you register this copy of PMI, your $15 will buy you the latest
version of PMI (which will contain a serial number linked to your name and
address) on the disk size of your preference. You may then copy your newly
registered version of PMI and distribute it to bulletin board systems, your
friends, or any place which accepts it. This way, when people send in their
registration fee and the serial number, I can find who was responsible for
these people receiving their original copy of PMI and, thus can reward the
owner of the serial number by sending them $5. So registering PMI can make
you some extra money, and get you the latest version of PMI. Think about it.
Do you find PMI useful? Does it save on headeaches? Could you use a good
conscience-clearing? If you answer yes to any of these, and find, that after
30 days of use, you still wish to use PMI....send in your registration form
with your check or money order and possibly earn some money. This will give
the author insentive to continue writing programs. Consider your registra-
tion a vote. NOTE: With registration, future versions of PMI may or may
not be registered at a discount. If a registrant fails to include a valid
serial number or there lacks a serial number at all, the registrant will be
notified and a request will be sent for re-submition of the serial number.
Please be sure to copy it down correctly, this will ensure that the restrants
before you may be rewarded as they deserve. NOTE: The serial number is
encoded and is tamper-proof.
Bugs and comments may also be sent to the author via the Internet at this
address: hoefer4739@iscsvax.uni.edu
-----------------------------------------------------------------------------
ARJ is a registered trademark of and copyrighted by Robert K. Jung.
PMI v1.2
Registration Form
(in the case REGISTER.FRM was missing)
NAME: -------------------- -------------- ----------------------
first middle last
ADDRESS: ----------------- -------------------------------------
number street
ZIP: --------------------- -------------- ---------
city state zip
MEDIA PREFERENCE: [ ] 3.5" SERIAL NUMBER: ___________________________
[ ] 5.25"
Comments welcome: ---------------------------------------------------------
---------------------------------------------------------------------------
---------------------------------------------------------------------------
---------------------------------------------------------------------------
Please send the 15 dollars in the form of a check or money order.
I hereby state that the above information is correct.
---------------- ----------------------------
date signature